Skip to content

Fix BlogPage.search_fields missing SearchField for introduction and subtitle#730

Merged
thibaudcolas merged 1 commit intowagtail:mainfrom
Pra26nav:fix/blogpage-search-fields-clean
Apr 22, 2026
Merged

Fix BlogPage.search_fields missing SearchField for introduction and subtitle#730
thibaudcolas merged 1 commit intowagtail:mainfrom
Pra26nav:fix/blogpage-search-fields-clean

Conversation

@Pra26nav
Copy link
Copy Markdown
Contributor

Fixes #729

Description

BlogPage.search_fields was only indexing "title" and "body", leaving "introduction" and "subtitle" unsearchable.

Searching for words that exist exclusively in a blog post's "introduction" returned no results — verified locally with
"?q=prolonged" and "?q=normally" against the "Bread and Circuses" page.

This fix adds both fields, consistent with the approach taken in #704 (BreadPage) and #724 (Person).

AI usage

I used AI assistance (Claude) to help investigate and diagnose this bug and specifically to trace the search_fields audit, verify words exclusively in introduction via shell, and confirm the UI behaviour. The fix itself is a 2-line change I understood, verified, and applied independently.

@thibaudcolas thibaudcolas merged commit b7c24aa into wagtail:main Apr 22, 2026
4 checks passed
@thibaudcolas
Copy link
Copy Markdown
Member

ty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BlogPage.search_fields is missing SearchField for introduction and subtitle — searching by these fields returns no results

2 participants